/**
 * Created by Administrator on 2017/5/4 0004.
 */
$(document).attr('title',title)
var mid = $.cookie('mid');
var token = $.cookie('token');
var he=window.location.href;
if(he.indexOf('mid')!=-1){
      var m=he.split("=")[1].split("&")[0];
      var t=he.split("=")[2].split("&")[0];
      if (!(mid && token) || (mid != m && token != t)) {
            $.cookie('mid',m);
            $.cookie('token',t);
      } else {
            if ((mid == m) && (token != t)) {
                  $.cookie('token',t);
            }
      }
      window.location.href= 'member_index.html';
} else {
      if (!(mid && token)) {
            window.location.href ='/?type=1';
      }
}
//请求用户基本信息
getData({url:member_index,cache:true,data:{mid:mid,token:token}}, function (data) {
      var html=template('member_info',data)
      $('.content').html(html);
      var html1=template('money',data)
      $('.money').html(html1);
})
